package cn.itsource;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

//EnableAutoConfiguration自动装配
@SpringBootApplication//@ComponentScan  就是去扫描当前包及同级和以下及的所有spirng的注解
@MapperScan("cn.itsource.*.mapper")
@ServletComponentScan(value = {"cn.itsource.config"})
public class PethomeApp {
    public static void main(String[] args) {
        SpringApplication.run(PethomeApp.class, args);
    }
}
